package com.ynet.middleground.oss.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * oauth角色(权限)表
 * </p>
 *
 * @author liulx
 * @since 2020-10-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("gc_oauth_role")
public class OauthRole extends Model<OauthRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 权限ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色(权限)名称
     */
    private String roleName;

    /**
     * 描述
     */
    private String roleDesc;

    /**
     * 启用标志
     */
    private Boolean isEnabled;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
